home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / pc / planeten / internet / httpd4ma.sit / httpd4Mac-v12a folder / httpd4Mac-v12a.rsrc / prfs_128_Sample prefs < prev    next >
Text File  |  1995-02-28  |  7KB  |  168 lines

  1. # This is a sample prefs file created automatically by httpd
  2.  
  3. # When httpd is launched it first looks in its own folder for a config file. Then
  4. # it look in the prefs folder (sys folder) if nothing is found there is then creates
  5. # this sample file and dumps it in prefs folder. You can now edit this file if you 
  6. # wish and re-launch httpd.
  7.  
  8. # Any files created by httpd, will be placed in the same folder as httpd itself except
  9. # in this case where it has created this prefs file.
  10.  
  11. # Oh and if you haven't worked this out already any line beginning with # is ignored
  12. # and you cannot have a line longer than 99 characters, as a guide this line is 93 characters.
  13.  
  14. # Blank lines are also ignored. If you take out the comment on the command 'check_syntax', this
  15. # tells httpd to check the syntax of this file only and report back to the user via the 
  16. # notification manager. If you wish to use this command it should be the first command
  17. # BUT its not implemented on the ALPHA version, sorry.
  18.  
  19. # check_syntax
  20.  
  21. # By the way all command and values should be in lower case. ALL directives understood by httpd
  22. # are shown in this file. However you do not need to enter all of them, httpd sets up 
  23. # defaults for these directives if they are not entered. Those default values will be the same
  24. # as the ones illustrated in this sample file, unless indicated otherwise.
  25.  
  26. # ----------------
  27.  
  28. # The following line indicates whether or not httpd will notify user of
  29. # transitions such as restarting, quitting, failed etc.
  30. # If running remotely this would usually be 'off', relying instead on PPC messages
  31. # and the contents of the debug file. Remote control is not implemented on ALPHA version.
  32. # default is off
  33.  
  34. notify  on
  35.  
  36.  
  37. # This line tells httpd to create a new access log each time it starts, old file gets
  38. # renamed 'xxx.bak'
  39.  
  40. create_access_log  off
  41.  
  42.  
  43. # This indicates if httpd will log access. If no file exists, access is not logged.
  44. # Logging information is simply appended to the file.
  45.  
  46. log_access  off
  47.  
  48.  
  49. # The next two lines will do the same for error logging, when error logging is implemented.
  50.  
  51. create_error_log  off
  52. log_errors  off
  53.  
  54.  
  55. # This line is self-explanatory, but no spaces in file name allowed !
  56.  
  57. access_log_name     httpd_access_log
  58. error_log_name      httpd_error_log
  59.  
  60.  
  61. # This line allows you to define the creator code for the log file. Simple Text is specified
  62. # I know the user shouldn't have to know about creator codes in an ideal world, oh well
  63. # Other common creators are Think C 'KAHL', MSWord 'MSWD' and BBEdit 'R*ch'
  64. # default is '????' (Unknown)
  65.  
  66. log_creator 'ttxt'
  67.  
  68.  
  69. # This tells httpd to do a reverse dns lookup for each connection logged. You may wish 
  70. # to switch this off for extra speed.
  71.  
  72. dnr  off
  73.  
  74.  
  75. # The followiing feature tells httpd how deep to make the log Q. As connections are received
  76. # vital info is stored on this Q and the connection serviced, to get the info back
  77. # to the client ASAP. The logging itself is deferred until later. It is possible
  78. # that a busy site may need to up this figure, if dnr is on you may also need to up
  79. # this figure.
  80.  
  81. log_q  20
  82.  
  83.  
  84. # For speed you may wish to disable Mac 2 ISO Latin 1 translation, for compliance
  85. # you should switch it on. This is
  86. # only partly implemented in ALPHA versions.
  87.  
  88. translate_iso  on
  89.  
  90.  
  91. # http should run on port 80. Nothing to stop you launching multiple instances
  92. # of httpd with different config files that puts servers on various ports.
  93. # You could do this by creating the copies of httpd and placing in different folders.
  94. # Put a config file in each of those folders and cofigure to run on different ports
  95. # Now create your pages and place them in the relevant folders.
  96. # Now create an alias for each of the httpd apps and place in your startup folder
  97. # On startup you will now have multiple servers running
  98. # Beware of setting two instances off both on same port, could give strange results
  99.  
  100. http_port  80
  101.  
  102.  
  103. # This line indicates how many streams you want allocated by the server. As a default
  104. # I suggest 3. MacTCP limits you to 64 and you may want to run other TCP apps, so don't
  105. # set it too high. If you find users complain they cannot connect when accessing pages
  106. # with many graphics or when server is busy etc, then you can up this figure. Future
  107. # versions of this app may address this problem by dynamically allocating more streams
  108. # when server is busy, then releasing them when it goes quiet again.
  109.  
  110. streams  3
  111.  
  112.  
  113. # This line indicates if you want httpd to write debugging info to a file. The file
  114. # will be called 'http_debug_log' by default and is a text file. You would probably only
  115. # wish to do this if you are having problems as it is bound to slow the machine right
  116. # down.
  117.  
  118. debug  off
  119.  
  120.  
  121. # If you have switched debugging on then why not slow the machine right down with
  122. # verbose messages. Look out though, with verbose messages you will quickly get 
  123. # large files
  124.  
  125. verbose  off
  126.  
  127.  
  128. # This command determines how many buffers are allocated for debug messages. Not 
  129. # important if you haven't switched debugging on.
  130.  
  131. debug_buff 60
  132.  
  133.  
  134. # This command limits the amount of time cached entries stay in the cache, it is measured in
  135. # seconds. Cache entries will not automatically get trashed once they are this old, but are
  136. # are checked every minute or so, or after some server activity and if too old will be 
  137. # trashed then. This default setting is for one hour. If you are using httpd for developing
  138. # WWW pages then you might wish to set this value very low (ie 1) so that cached entries
  139. # are trashed almost as soon as they have been delivered, allowing you to make a change
  140. # then reload and see the change in the client.
  141.  
  142. cache_life 3600
  143.  
  144.  
  145. # Here's where you define MIME types. Read the additional documentation that came with httpd
  146. # if you don't know what MIME is or for a better explanation of the 'mime_def' command.
  147. # Here you simply list Mac filetype and suffix combinations and a MIME type to go with it.
  148. # Use * as a wildcard. The following are examples only. 7 means 7bit encoding, 8 means 8bit.
  149. # Notice that file types are delimted with '' but suffices are not.
  150. # If no mime types are defined in this file then 'text/plain' is assumed for all files.
  151.  
  152. mime_def '*'    & html   = text/html  7
  153. mime_def '*'    & txt    = text/plain 7
  154. mime_def 'TEXT' & *      = text/plain 7
  155. mime_def '*'    & jpeg   = image/jpeg 8
  156. mime_def '*'    & gif    = image/gif  8
  157.  
  158.  
  159. # The following line is a string that will be appended to all time stamps. You would usually
  160. # put your time zone offset from UT or GMT here. Alternatively you can put a letter code
  161. # eg GMT, UT, EST
  162.  
  163. time_zone   +0000
  164.  
  165.  
  166. # Have fun !
  167. # Bill Melotti
  168. # bill.melotti@rl.ac.uk